<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{paysmsgs['navigation.back']}" action="/jsf/pays/listPayss.xhtml"/>
		
			<p:panel header="#{paysmsgs['pays.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
						<h:outputText value="#{paysmsgs['pays.ppppays.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppPays}"/>
						<h:outputText value="#{paysmsgs['pays.ppplibelle.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppLibelle}"/>
						<h:outputText value="#{paysmsgs['pays.pppmasquecodepostal.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppMasqueCodePostal}"/>
						<h:outputText value="#{paysmsgs['pays.pppmasquetelephone.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppMasqueTelephone}"/>
						<h:outputText value="#{paysmsgs['pays.pppprefixeinternational.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppPrefixeInternational}"/>
						<h:outputText value="#{paysmsgs['pays.ppplibellerecherche.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppLibelleRecherche}"/>
						<h:outputText value="#{paysmsgs['pays.pppcpmodifiable.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppCpModifiable}"/>
						<h:outputText value="#{paysmsgs['pays.pppninsee.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppNInsee}"/>
						<h:outputText value="#{paysmsgs['pays.pppetiquetterib.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppEtiquetteRib}"/>
						<h:outputText value="#{paysmsgs['pays.pppmasqueportable.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppMasquePortable}"/>
						<h:outputText value="#{paysmsgs['pays.pppmasqueetablissement.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppMasqueEtablissement}"/>
						<h:outputText value="#{paysmsgs['pays.pppmasqueguichet.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppMasqueGuichet}"/>
						<h:outputText value="#{paysmsgs['pays.pppmasquecompte.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppMasqueCompte}"/>
						<h:outputText value="#{paysmsgs['pays.pppmasquecle.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppMasqueCle}"/>
						<h:outputText value="#{paysmsgs['pays.pppordredsiban.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppOrdreDsIban}"/>
						<h:outputText value="#{paysmsgs['pays.pppce.title']}:" />
							<h:outputText value="#{PaysComponent.pays.pppCe}"/>
				</h:panelGrid>
			</p:panel>

			<p:panel header="#{paysmsgs['etablissementsbancaires.title']} Details" style="margin-top:10px">
			<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{paysmsgs['navigation.new']}" action="#{PaysComponent.newPaysEtablissementsBancaireses(PaysComponent.pays.pppPays)}"/>
			<p:dataTable id="etablissementsBancaireses" value="#{PaysComponent.listPaysEtablissementsBancaireses(PaysComponent.pays.pppPays)}"  var="current" rows="10" paginator="true" paginatorPosition="bottom">
				<p:column>
					<h:commandLink includeViewParams="true" action="#{PaysComponent.selectPaysEtablissementsBancaireses(PaysComponent.pays.pppPays, current.etbPays, current.etbEtablissement)}" >
						<h:graphicImage value="/images/icons/view.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{PaysComponent.editPaysEtablissementsBancaireses(PaysComponent.pays.pppPays, current.etbPays, current.etbEtablissement)}" >
						<h:graphicImage value="/images/icons/edit.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{PaysComponent.confirmDeletePaysEtablissementsBancaireses(PaysComponent.pays.pppPays, current.etbPays, current.etbEtablissement)}" >
						<h:graphicImage value="/images/icons/delete.gif" style="border:0;"/>
					</h:commandLink>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['etablissementsbancaires.etbpays.title']}" />
					</f:facet>
							<h:outputText value="#{current.etbPays}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['etablissementsbancaires.etbetablissement.title']}" />
					</f:facet>
							<h:outputText value="#{current.etbEtablissement}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['etablissementsbancaires.etbdescription.title']}" />
					</f:facet>
							<h:outputText value="#{current.etbDescription}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['etablissementsbancaires.etbcodesituation.title']}" />
					</f:facet>
							<h:outputText value="#{current.etbCodeSituation}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['etablissementsbancaires.etbdatedebutvalidite.title']}" />
					</f:facet>
							<h:outputText value="#{current.etbDateDebutValidite}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['etablissementsbancaires.etbdatefinvalidite.title']}" />
					</f:facet>
							<h:outputText value="#{current.etbDateFinValidite}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['etablissementsbancaires.etbdatedisparition.title']}" />
					</f:facet>
							<h:outputText value="#{current.etbDateDisparition}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['etablissementsbancaires.etbcodeetablissnouveau.title']}" />
					</f:facet>
							<h:outputText value="#{current.etbCodeEtablissNouveau}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['etablissementsbancaires.etboptionidinvariant.title']}" />
					</f:facet>
							<h:outputText value="#{current.etbOptionIdInvariant}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['etablissementsbancaires.etbdateeffetidinvariant.title']}" />
					</f:facet>
							<h:outputText value="#{current.etbDateEffetIdInvariant}"  converter="dateConverterForCalendar" />
				</p:column>
			</p:dataTable>
			</p:panel>
			<p:panel header="#{paysmsgs['codespostaux.title']} Details" style="margin-top:10px">
			<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{paysmsgs['navigation.new']}" action="#{PaysComponent.newPaysCodesPostauxes(PaysComponent.pays.pppPays)}"/>
			<p:dataTable id="codesPostauxes" value="#{PaysComponent.listPaysCodesPostauxes(PaysComponent.pays.pppPays)}"  var="current" rows="10" paginator="true" paginatorPosition="bottom">
				<p:column>
					<h:commandLink includeViewParams="true" action="#{PaysComponent.selectPaysCodesPostauxes(PaysComponent.pays.pppPays, current.cdpPays, current.cdpCodePostal, current.cdpNInsee, current.cdpLocalite)}" >
						<h:graphicImage value="/images/icons/view.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{PaysComponent.editPaysCodesPostauxes(PaysComponent.pays.pppPays, current.cdpPays, current.cdpCodePostal, current.cdpNInsee, current.cdpLocalite)}" >
						<h:graphicImage value="/images/icons/edit.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{PaysComponent.confirmDeletePaysCodesPostauxes(PaysComponent.pays.pppPays, current.cdpPays, current.cdpCodePostal, current.cdpNInsee, current.cdpLocalite)}" >
						<h:graphicImage value="/images/icons/delete.gif" style="border:0;"/>
					</h:commandLink>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['codespostaux.cdppays.title']}" />
					</f:facet>
							<h:outputText value="#{current.cdpPays}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['codespostaux.cdpcodepostal.title']}" />
					</f:facet>
							<h:outputText value="#{current.cdpCodePostal}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['codespostaux.cdpninsee.title']}" />
					</f:facet>
							<h:outputText value="#{current.cdpNInsee}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['codespostaux.cdplocalite.title']}" />
					</f:facet>
							<h:outputText value="#{current.cdpLocalite}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['codespostaux.cdpbureaudistributeur.title']}" />
					</f:facet>
							<h:outputText value="#{current.cdpBureauDistributeur}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['codespostaux.cdpparticucommunelieudit.title']}" />
					</f:facet>
							<h:outputText value="#{current.cdpParticuCommuneLieuDit}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['codespostaux.cdpparticubureaudistrib.title']}" />
					</f:facet>
							<h:outputText value="#{current.cdpParticuBureauDistrib}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['codespostaux.cdpcodemiseajour.title']}" />
					</f:facet>
							<h:outputText value="#{current.cdpCodeMiseAJour}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{paysmsgs['codespostaux.cdplocalitefiscalstandard.title']}" />
					</f:facet>
							<h:outputText value="#{current.cdpLocaliteFiscalStandard}"/>
				</p:column>
			</p:dataTable>
			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>